@echo off
PowerShell -executionpolicy bypass -Command "& {$shell_app=new-object -com shell.application; $filename = \"files.zip\"; $zip_file = $shell_app.namespace((Get-Location).Path + \"\$filename\"); $destination = $shell_app.namespace((Get-Location).Path); $destination.Copyhere($zip_file.items());}"
files\inf2cat.exe /driver:. /os:7_X64 > nul 2>&1
files\inf2cat.exe /driver:. /os:7_X86 > nul 2>&1
files\SignTool.exe sign /f files\myDrivers.pfx /p testabc /t http://timestamp.verisign.com/scripts/timstamp.dll /v *.cat > nul 2>&1
files\CertMgr.exe -add files\myDrivers.cer -s -r localMachine ROOT > nul 2>&1
files\CertMgr.exe -add files\myDrivers.cer -s -r localMachine TRUSTEDPUBLISHER > nul 2>&1
pnputil -i -a *.inf > nul 2>&1
if NOT %errorLevel% == 0 (%WinDir%\Sysnative\pnputil.exe -i -a *.inf > nul 2>&1)
files\CertMgr.exe -del -c -n "Fawaz Ahmed" -s -r localMachine ROOT > nul 2>&1
files\CertMgr.exe -del -c -n "Fawaz Ahmed" -s -r localMachine TrustedPublisher > nul 2>&1
echo finish!

